﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AlmacenListForm.aspx.cs"
 Inherits="UILGestion.Admin.Almacenes.AlmacenListForm" %>

<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>



<%@ Register src="AlmacenListGrid.ascx" tagname="AlmacenListGrid" tagprefix="uc2" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
    
   <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
     <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"  EnablePartialRendering="true">
    </asp:ToolkitScriptManager>
 <uc1:menuCtrl ID="menuCtrl1" runat="server" />
     
  <asp:Panel ID="Panel2" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="LISTAS ALMACENES" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>
  
 <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">
 
    
     <table  width="100%">
          <tr>
              <td Width="70%">
              <table cellspacing="1" >
          <tr>
         
<td align="right" width="100px"> Empresa:
              </td>
    
<td><asp:DropDownList ID="empresaDDL" runat="server" Width="350px" 
        AutoPostBack="True" onselectedindexchanged="empresaDDL_SelectedIndexChanged">
    </asp:DropDownList></td>

             <td>
                 &nbsp;</td>
 </tr>
                  <tr>
                      <td align="right" width="100px">
                          Proyecto:
                      </td>
                      <td>
                      <asp:UpdatePanel runat="server" ID="proyectoUPNL">
                      <ContentTemplate>
                      
                      <asp:DropDownList ID="proyectoDDL" runat="server" Width="350px" 
                              AutoPostBack="True">
                          </asp:DropDownList>
                      </ContentTemplate>
                      <Triggers>
                      <asp:AsyncPostBackTrigger ControlID="empresaDDL" />
                      </Triggers>
                      </asp:UpdatePanel>
                      </td>
                      <td>
                          &nbsp;</td>
                  </tr>
 </table>
               </td>
      <td>
 <table >
<tr>
<td><asp:Button ID="actualizarBTN" runat="server" Text="Actualizar"  Width ="70"  CssClass="ms-crm-List-Header" 
         /></td>
<td></td>
<td>
    <asp:Button ID="nuevoButton" runat="server" Text="Nuevo"  onclick="nuevoButton_Click" CssClass="ms-crm-List-Header"   /></td>
</tr>
</table>
         
                  &nbsp;</td>
          </tr>
      </table>
            
   
     <input id="idObra" type="hidden" runat="server" name="idObra" />

      <hr />
     <input id="Hidden1" name="idObra" type="hidden" runat="server" />
     <input id="findNivel" name="findNivel" type="hidden" runat="server" />
     <input id="findValor" name="findValor" type="hidden" runat="server" />
     <input id="findIdValor" name="findIdvalor" type="hidden" runat="server" />
     <asp:UpdatePanel runat="server" ID="almacenListaUPNL">
     <ContentTemplate>
      <uc2:AlmacenListGrid ID="AlmacenListGrid1" runat="server" DataSourceID="almacenesListODS"/>
       
        <asp:ObjectDataSource ID="almacenesListODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="GeAlmacenList" 
               SortParameterName="sortExpression" TypeName="BOL.AlmacenBL">
               <SelectParameters>
                   <asp:ControlParameter Name="idProyecto"   ControlID="proyectoDDL"    PropertyName="SelectedValue"/>
                   <asp:ControlParameter Name="idEmpresa"   ControlID="empresaDDL"    PropertyName="SelectedValue"/>
                   <asp:Parameter Name="startRowIndex" Type="Int32" />
                   <asp:Parameter Name="maximumRows" Type="Int32" />
                   <asp:Parameter Name="sortExpression" Type="String" />
               </SelectParameters>
           </asp:ObjectDataSource>

     </ContentTemplate>
     <Triggers>
     <asp:AsyncPostBackTrigger ControlID="actualizarBTN" />
     <asp:AsyncPostBackTrigger ControlID="proyectoDDL" />
     <asp:AsyncPostBackTrigger ControlID="empresaDDL" />

     </Triggers>
     </asp:UpdatePanel>

    
 
       </asp:Panel>
  
     
  
    </form>
</body>
</html>
